public class StudentXW extends Student {
    public String responsibility;
    // 构造方法
    public StudentXW(){

    }

    public StudentXW(int number, String name, double englishScore, double mathScore, double computerScore, String responsibility) {
        super(number, name, englishScore, mathScore, computerScore);
        this.responsibility = responsibility;
    }

    @Override
    // 重写测评成绩
    public double testScore(){
        super.sum();
        double test_score = getTotalScore()/3.0+3;
        return test_score;
    }

}
